﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.SmartStorPro.Domain
{
    /// <summary>
    /// 库存台账表
    /// </summary>
    public class lnventoryLedger
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        /// <summary>
        /// 序号--主键
        /// </summary>
        public int EntrylD {  get; set; }
        /// <summary>
        /// 类型
        /// </summary>
        /// 
        [MaxLength(50)]
        public string Type { get; set; }
        /// <summary>
        /// 仓库-外键
        /// </summary>
        public int WarehouseId { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int Quantity { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        /// 
        [MaxLength(50)]
        public string Unit { get; set; }
        /// <summary>
        /// 原库位
        /// </summary>
        /// 
        [MaxLength(50)]
        public string OriginalWarehouse { get; set; }

        /// <summary>
        /// 目标库位
        /// </summary>
        /// 
        [MaxLength(50)]
        public string TargetWarehouse { get; set; }
        /// <summary>
        /// 日期
        /// </summary>
        public DateOnly Date { get; set; }
        /// <summary>
        /// 是否删除(1-删除 0正常)
        /// </summary>
        public bool IsDelete { get; set; }

    }
}
